package org.pwr.zpi.twop;

import pwr.zpi.twop.GameStarter;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;

public class Main {
	public static void main(String[] args) {
//		JFrame frame = new JFrame();
//		JFileChooser fc = new JFileChooser("C:\\Windows\\system32");
//		
//		int returnVal = fc.showOpenDialog(frame);
//
//        if (returnVal == JFileChooser.APPROVE_OPTION) {
//        	String filePath = fc.getSelectedFile().getAbsolutePath();
        	String filePath = "C:\\Windows\\splwow64.exe";
            
            LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
            cfg.title = "twop";
            cfg.useGL20 = true;
            cfg.width = 800;
            cfg.height = 600;
            cfg.vSyncEnabled = false;
            cfg.fullscreen = false;
            
            new LwjglApplication(new GameStarter(filePath), cfg);
//        }
		
	}
}
